package com.cskaoyan.mapper;

import com.cskaoyan.model.GoodsAttribute;
import com.cskaoyan.model.GoodsAttributeExample;
import com.cskaoyan.model.bo.GoodsAllinone;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsAttributeMapper {
    long countByExample(GoodsAttributeExample example);

    int deleteByExample(GoodsAttributeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GoodsAttribute record);

    int insertSelective(GoodsAttribute record);

    List<GoodsAttribute> selectByExample(GoodsAttributeExample example);

    List<GoodsAttribute> selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);

    int updateByExample(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);

    int updateByPrimaryKeySelective(GoodsAttribute record);

    int updateByPrimaryKey(GoodsAttribute record);

    void insertAttribute(@Param("allioneGoods")GoodsAllinone goodsAllinone, @Param("goodsId") Integer goodsId,@Param("attribute") GoodsAttribute attribute);

    void updateAttributeDeleted(GoodsAttribute attribute);

    List<GoodsAttribute> selectByGoodsId(Integer id);

    int insertOneGoodAttribute(Integer goodId,GoodsAttribute record);

}
